<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>费用信息查看</title>
<jsp:include page="../../../common/head.jsp">
	  <jsp:param name="_useCalendar" value="true"/>
</jsp:include>
<script language="javascript">

	//返回
	function goback()
	{
		window.top.close();
	}


</script>

</head>
<body>
	<div id="body_div">
	<w:ShowTitle name="费用查看">
	<w:TitleButton funcName="返回" onClickFunction="goback()" urlImg="${ctx}/images/main/back.png"/>
	</w:ShowTitle>
	<div id="body_content">
	<table width="100%">
            <tr>
              <td width="80" class="right_align">地区</td>
              <td width="170" class="left_align">
				${feeDetail.areaName}
			  </td>
              <td width="80" class="right_align"><span class="left_align">事业部</span></td>
              <td width="170" class="left_align">
				${feeDetail.areaDeptName}
			  </td>
              <td class="right_align" width="80">财务主管</td>
              <td class="left_align">
              	${feeDetail.financeSupervisorName}
              </td>
            </tr>
            <tr>
              <td class="right_align">发生对象</td>
              <td class="left_align">
              	${feeDetail.feeTarget}
              </td>
              <td class="right_align">对象名称
              </td>
              <td class="left_align" id="targetIdTd">
              	${feeDetail.targetName}
              </td>
              <td class="right_align">费用日期</td>
              <td class="left_align">
				<fmt:formatDate value='${feeDetail.feeDate}' pattern='yyyy-MM-dd' />
              </td>
            </tr>
            <tr>
              <td class="right_align">费用类别</td>
              <td class="left_align">
              ${feeDetail.feeTypeName}
              </td>
              <td class="right_align">状态</td>
              <td class="left_align">${feeDetail.state}</td>
              <td class="right_align">登记日期</td>
              <td class="left_align"><fmt:formatDate value='${feeDetail.createDate}' pattern='yyyy-MM-dd' /></td>
            </tr>
            <tr>
              <td class="left_align" colspan="6">核销信息</td>
            </tr>
            <tr>
              <td class="left_align" colspan="6">
              	<table width="100%">
               <tr>
                <td width="80" class="td_title">项目</td>
                <td width="100" class="td_title">申报</td>
                <td width="160" class="td_title">调整信息 </td>
                <td width="160" class="td_title">核销信息</td>
                <td width="160" class="td_title">本次留审金额</td>
                <td width="160" class="td_title">前期留审调整</td>
                <td width="160" class="td_title">退票信息</td>
              </tr>
              <tr>
                <td class="right_align">票据金额</td>
                <td class="right_align">
                ${feeDetail.billAmount}
                </td>
                <td class="right_align">${feeWrittenOff.billAmountAdjust}</td>
                <td class="right_align">${feeWrittenOff.billAmountWrittenOff}</td>
                <td class="right_align">${feeWrittenOff.billAmountLeaveReview}</td>
                <td class="right_align">${feeWrittenOff.billAmountLeaveReviewEarly}</td>
                <td class="right_align">${feeWrittenOff.billAmountRetruned}</td>
              </tr>
              <tr>
                <td class="right_align">票据张数</td>
                <td class="right_align">
                	${feeDetail.billCount}
                </td>
                <td class="right_align">${feeWrittenOff.billCountAdjust}</td>
                <td class="right_align">${feeWrittenOff.billCountWrittenOff}</td>
                <td class="right_align">${feeWrittenOff.billCountLeaveReview}</td>
                <td class="right_align">${feeWrittenOff.billCountLeaveReviewEarly}</td>
                <td class="right_align">${feeWrittenOff.billCountRetruned}</td>
              </tr>
              <tr>
                <td class="right_align">凭证金额</td>
                <td class="right_align">${feeDetail.certificateAmount}
                </td>
                <td class="right_align">${feeWrittenOff.certificateAmountAdjust}</td>
                <td class="right_align">${feeWrittenOff.certificateAmountWrittenOff}</td>
                <td class="right_align">${feeWrittenOff.certificateAmountLeaveReview}</td>
                <td class="right_align">${feeWrittenOff.certificateAmountLeaveReviewEarly}</td>
                <td class="right_align">${feeWrittenOff.certificateAmountRetruned}</td>
              </tr>
			  <tr>
                <td class="right_align">凭证张数</td>
                <td class="right_align">${feeDetail.certificateCount}
                </td>
                <td class="right_align">${feeWrittenOff.certificateCountAdjust}</td>
                <td class="right_align">${feeWrittenOff.certificateCountWrittenOff}</td>
                <td class="right_align">${feeWrittenOff.certificateCountLeaveReview}</td>
                <td class="right_align">${feeWrittenOff.certificateCountLeaveReviewEarly}</td>
                <td class="right_align">${feeWrittenOff.certificateCountRetruned}</td>
			  </tr>
              <tr>
                <td class="right_align">总金额</td>
                <td class="right_align" id="totalAmount">${feeDetail.billAmount+feeDetail.certificateAmount}</td>
                <td class="right_align" id="totalAmountAdjust">${feeWrittenOff.billAmountAdjust+feeWrittenOff.certificateAmountAdjust}</td>
                <td class="right_align" id="totalAmountWrittenOff">${feeWrittenOff.billAmountWrittenOff+feeWrittenOff.certificateAmountWrittenOff}</td>
                <td class="right_align" id="totalAmountLeaveReview">${feeWrittenOff.billAmountLeaveReview+feeWrittenOff.certificateAmountLeaveReview}</td>
                <td class="right_align" id="totalAmountLeaveReviewEarly">${feeWrittenOff.billAmountLeaveReviewEarly+feeWrittenOff.certificateAmountLeaveReviewEarly}</td>
                <td class="right_align" id="totalAmountRetruned">${feeWrittenOff.billAmountRetruned+feeWrittenOff.certificateAmountRetruned}</td>
              </tr>
              <tr>
                <td class="right_align">总张数</td>
                <td class="right_align" id="totalCount">${feeDetail.billCount+feeDetail.certificateCount}</td>
                <td class="right_align" id="totalCountAdjust">${feeWrittenOff.billCountAdjust+feeWrittenOff.certificateCountAdjust}</td>
                <td class="right_align" id="totalCountWrittenOff">${feeWrittenOff.billCountWrittenOff+feeWrittenOff.certificateCountWrittenOff}</td>
                <td class="right_align" id="totalCountLeaveReview">${feeWrittenOff.billCountLeaveReview+feeWrittenOff.certificateAmountLeaveReview}</td>
                <td class="right_align" id="totalCountLeaveReviewEarly">${feeWrittenOff.billCountLeaveReviewEarly+feeWrittenOff.certificateCountLeaveReviewEarly}</td>
                <td class="right_align" id="totalCountRetruned">${feeWrittenOff.billCountRetruned+feeWrittenOff.certificateCountRetruned}</td>
              </tr>
			  <tr>
                <td class="right_align">备注</td>
                <td class="right_align">${feeDetail.feeDetailRemark}</td>
                <td class="right_align">${feeWrittenOff.adjustRemark}</td>
                <td class="right_align">${feeWrittenOff.writtenOffRemark}</td>
                <td class="right_align">${feeWrittenOff.leaveReviewRemark}</td>
                <td class="right_align">${feeWrittenOff.leaveReviewEarlyRemark}</td>
                <td class="right_align">${feeWrittenOff.leaveReviewRetrunedRemark}</td>
			  </tr>
          </table>
              </td>
            </tr>
            
          </table>
	</div>
	</div>	
</body>
</html> 